package com.sihan.framework.etm.vo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class UserVO implements Serializable {

  private static final long serialVersionUID = -1428661649642012366L;

  @ApiModelProperty(value = "用户Id")
  private String id;

  @ApiModelProperty(value = "用户昵称")
  private String name;

  @ApiModelProperty(value = "用户名")
  private String username;

  @ApiModelProperty(value = "用户类型 0:长期账号 1:临时账号")
  private Integer userType;

  @ApiModelProperty(value = "绑定客户端访问IP")
  private String loginIp;

  @ApiModelProperty(value = "访问起始时间")
  private Date accessStartTime;

  @ApiModelProperty(value = "访问结束时间")
  private Date accessEndTime;

  @ApiModelProperty(value = "性别: true --> 男  false -->女")
  private Short sex;

  @ApiModelProperty(value = "邮箱")
  private String email;

  @ApiModelProperty(value = "电话")
  private String phone;

  @ApiModelProperty(value = "是否锁定: true --> 是  false -->否")
  private Boolean locked;

  @ApiModelProperty(value = "创建时间")
  private Date createTime;

  @ApiModelProperty(value = "部门ID")
  private String orgId;

  @ApiModelProperty(value = "班组")
  private String teamName="";

  @ApiModelProperty(value = "所属角色")
  private String roleName;

  @ApiModelProperty(value = "任务数量")
  private int taskNum;

  @ApiModelProperty(value = "审核任务数量")
  private int auditTaskNum;

  @ApiModelProperty(value = "用户状态，-1：注销，0：激活，1：休眠，2：未认证")
  private Short state;

  @ApiModelProperty(value = "角色")
  private List<RoleVO> roles;

  @ApiModelProperty(value = "角色id")
  private List<String> roleIds;

  @ApiModelProperty(value = "权限信息")
  private Set<String> permissions;

  @ApiModelProperty(value = "公司id")
  private String companyId;
  @ApiModelProperty(value = "地市名称")
  private String cityName="";
  @ApiModelProperty(value = "供电局ID")
  private String depId;
  @ApiModelProperty(value = "县")
  private String countryName="";

  @ApiModelProperty(value = "面部图片名称")
  private String faceImgs;
  @ApiModelProperty(value = "图片格式化之后的路径")
  private String faceImgUrl;
  @ApiModelProperty(value = "iccard信息")
  private String icCard;
  @ApiModelProperty(value = "工号")
  private String code;
  @ApiModelProperty(value = "班组")
  List<CommonQueryResultVO> team;
  @ApiModelProperty(value = "县")
  List<CommonQueryResultVO> country;
  @ApiModelProperty(value = "地市")
  List<CommonQueryResultVO> city;
  @ApiModelProperty(value = "头像")
  private String avator;
  @ApiModelProperty(value = "图片")
  private String img;
  @ApiModelProperty(value = "职位")
  private String position;
  @ApiModelProperty(value = "是否开门（true：开门，false：不开门）")
  private Boolean openDoor = true;

}
